import QtQuick 2.4
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import QtWebEngine 1.10
Item{
    property string nowWebUrl: "store/#/flamescion/"
    Rectangle {
        id: _background
        anchors.fill: parent
        anchors.rightMargin: 1
        anchors.topMargin: rootWindow.header.height

        WebEngineView {
            id: webView
            anchors.fill: parent
            url: rootWindow.serverUrl + rootWindow.nowWebUrl + "&theme=" + "light"
            onUrlChanged: {
                if(url.toString().slice(-8) == "app.json")
                {
                    console.log(url)
                    webView.goBack()
                    rootWindow.switchPageFromName("appIntoPage")
                }
            }
        }
    }
}
